<?php abstract class HTTP {
	public static function Relocate ($Where = NULL) {
		$URL = parse_url ($Where);
		isset ($URL ['scheme']) or $URL ['scheme'] = 'http';
		isset ($URL ['host']) or $URL ['host'] = $_SERVER ['HTTP_HOST'];
		if (NULL === $Where) {
			$URL ['path'] = $_SERVER ['PHP_SELF'];
		} else (substr ($URL ['path'], 0, 1) === '/') or $URL ['path'] = dirname ($_SERVER ['PHP_SELF']).'/'.$URL ['path'];
		$Where = $URL ['scheme'].'://'.$URL ['host'].$URL ['path'];
		header ("Location: $Where");
		die ("Please preceed to $Where");
	}
} ?>